public class Text3 {
    public static void main(String[] args) {
        Thread t1 = new Thread(){
            @Override
            public void run() {
                while(true){
                    System.out.println("hello t1");
                }
            }
        };

        Thread t2 = new Thread(){
            @Override
            public void run() {
                while(true){
                    System.out.println("hello t2");
                }
            }
        };

        t1.start();
        t2.start();
    }
}
